from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
from Cython.Build import cythonize
# filename1 = 'hello'  # 源文件名
# full_filename1 = 'hello.py'  # 包含后缀的源文件名
# filename2 = 'tool.add'
# full_filename2 ='tool/add.pyx'
# python build-single.py build_ext --inplace
extensions=[
    Extension('my_u2net_test', ['u_2_net/my_u2net_test.py']),
    Extension('upload', ['upload.py']),
    Extension('crop', ['m_dlib/crop.py']),
]
# 如果只有一个文件,直接extension=Extension()即可
setup(
#     name ='test',    # 可以省略
#     cmdclass={'build_ext':build_ext}, #可以省略
    ext_modules=cythonize(extensions,language_level=3),   #指定python3
)
